class Xml 
	
	@@srcFolder = File.join(File.dirname(__FILE__), '../../') 
	@@stagingXmlFolder = @@srcFolder + 'main/resources/ota2009a/xml/staging/'; 
	@@certificationXmlFolder  = @@srcFolder + 'test/resources/ota2009a/xml/sample/';  		

	def self.stagingOf(fname)
		Xml.new(@@stagingXmlFolder + fname).content
	end
	
	def self.certificationOf(fname)
		Xml.new(@@certificationXmlFolder + fname).content
	end

	def initialize(file)
		@file = file
	end

	def content
		IO.read(@file).gsub(/<\?xml.*?\?>/, '')
	end	
    
end
